package com.leihao.product.domian;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品分类
 */

public class ProductType {

    /**
     * 编号
     */
    @NotNull(message = "主键编号不能为空")
    private Integer productTypeId;
    /**
     * 商品类型名称
     */
    @NotBlank(message = "商品名称不能为空")
    @Size(min = 0,max = 10,message = "字符长度在0~10之内")
    private String typeName;
    /**
     * 分类级别
     */
    private String typeRank;
    /**
     * 商品数量
     */
    private Integer productTypeNum;
    /**
     * 数量单位
     */
    private String typeUnit;
    /**
     * 是否显示在导航栏 0:展示 1:不展示
     */
    private Integer isNavigation;
    /**
     * 是否显示 0:展示 1:不展示
     */
    private Integer isShow;
    /**
     * 排序
     */
    private Integer isSort;
    /**
     * 分类图标
     */
    private String typeIcon;
    /**
     * 分类关键词
     */
    private String typeKeyword;
    /**
     * 分类描述
     */
    private String typeDescription;
    /**
     * 父级id
     */
    private Integer parentId;
    /**
     * 逻辑删除 0:正常 1:删除
     */
    private Integer isDelete;

    public Integer getProductTypeId() {
        return productTypeId;
    }

    public void setProductTypeId(Integer productTypeId) {
        this.productTypeId = productTypeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeRank() {
        return typeRank;
    }

    public void setTypeRank(String typeRank) {
        this.typeRank = typeRank;
    }

    public Integer getProductTypeNum() {
        return productTypeNum;
    }

    public void setProductTypeNum(Integer productTypeNum) {
        this.productTypeNum = productTypeNum;
    }

    public String getTypeUnit() {
        return typeUnit;
    }

    public void setTypeUnit(String typeUnit) {
        this.typeUnit = typeUnit;
    }

    public Integer getIsNavigation() {
        return isNavigation;
    }

    public void setIsNavigation(Integer isNavigation) {
        this.isNavigation = isNavigation;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getIsSort() {
        return isSort;
    }

    public void setIsSort(Integer isSort) {
        this.isSort = isSort;
    }

    public String getTypeIcon() {
        return typeIcon;
    }

    public void setTypeIcon(String typeIcon) {
        this.typeIcon = typeIcon;
    }

    public String getTypeKeyword() {
        return typeKeyword;
    }

    public void setTypeKeyword(String typeKeyword) {
        this.typeKeyword = typeKeyword;
    }

    public String getTypeDescription() {
        return typeDescription;
    }

    public void setTypeDescription(String typeDescription) {
        this.typeDescription = typeDescription;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public ProductType() {
    }

    public ProductType(Integer productTypeId, String typeName, String typeRank, Integer productTypeNum, String typeUnit, Integer isNavigation, Integer isShow, Integer isSort, String typeIcon, String typeKeyword, String typeDescription, Integer parentId, Integer isDelete) {
        this.productTypeId = productTypeId;
        this.typeName = typeName;
        this.typeRank = typeRank;
        this.productTypeNum = productTypeNum;
        this.typeUnit = typeUnit;
        this.isNavigation = isNavigation;
        this.isShow = isShow;
        this.isSort = isSort;
        this.typeIcon = typeIcon;
        this.typeKeyword = typeKeyword;
        this.typeDescription = typeDescription;
        this.parentId = parentId;
        this.isDelete = isDelete;
    }
}
